package org.apache.dubbo.springboot.demo.provider.controller;


import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.springboot.demo.Demo2Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class testController {
    @DubboReference
    private Demo2Service demo2Service;


    @GetMapping("/test02")
    public String getDemo02(@RequestParam("name") String name){
        String s = demo2Service.sayHi(name);
        return s;
    }
}
